function favorite(){
    return this;
}
var controlFns = {
    index : function(args){

        if(args){
            var uid = args.split('_')[0];
            var token = args.split('_')[1];
        }
        this.line(uid,token);
    },
    line : function(uid,token){

        var php = {
            'favlist' : 'store::/user/lovelist?uid='+uid+'&token='+token
            //'favlist' : 'store::/site/index'
        };
        var mSelf = this;
        this.setSDefault(php);
        this.bridgeMuch(php);
        this.listenOver(function(data){

            data.condition = this.req.__get;
            //console.log(data.condition);

            data.status = 'test';
            data.groupPg = {};
            //data.groupPg.total_num = 2000;
            //data.groupPg.page_size = 10;
            //data.groupPg.current_page = page;

            data._CSSLinks = ['h5/css/line'];
            data._JSLinks  = ['h5/min/line'];
            data.pageTitle = '全部';
            mSelf.render('favorite/line.html', data);
        });
    },
    article : function(args){
        if(args){
            var uid = args.split('_')[0];
            var token = args.split('_')[1];
        }

        var php = {
            'favlist' : 'store::/user/lovelist?uid='+uid+'&token='+token
            //'favlist' : 'store::/site/index'
        };
        var mSelf = this;
        this.setSDefault(php);
        this.bridgeMuch(php);
        this.listenOver(function(data){

            data.condition = this.req.__get;
            //console.log(data.condition);

            data.status = 'test';
            data.groupPg = {};
            //data.groupPg.total_num = 2000;
            //data.groupPg.page_size = 10;
            //data.groupPg.current_page = page;

            data._CSSLinks = ['h5/css/line'];
            data._JSLinks  = ['h5/min/line'];
            data.pageTitle = '文章';
            mSelf.render('favorite/article.html', data);
        });
    },
    hot : function(args){
        if(args){
            var uid = args.split('_')[0];
            var token = args.split('_')[1];
        }
        var php = {
            'favlist' : 'store::/user/lovelist?uid='+uid+'&token='+token
        };
        var mSelf = this;
        this.setSDefault(php);
        this.bridgeMuch(php);
        this.listenOver(function(data){

            data.condition = this.req.__get;
            //console.log(data.condition);

            data.status = 'test';
            data.groupPg = {};
            //data.groupPg.total_num = 2000;
            //data.groupPg.page_size = 10;
            //data.groupPg.current_page = page;

            data._CSSLinks = ['h5/css/line'];
            data._JSLinks  = ['h5/min/line'];
            data.pageTitle = '热点';
            mSelf.render('favorite/hot.html', data);
        });
    },

    pedia : function(args){
        if(args){
            var uid = args.split('_')[0];
            var token = args.split('_')[1];
        }
        var php = {
            'favlist' : 'store::/user/lovelist?uid='+uid+'&token='+token
        };
        var mSelf = this;
        this.setSDefault(php);
        this.bridgeMuch(php);
        this.listenOver(function(data){

            data.condition = this.req.__get;
            //console.log(data.condition);

            data.status = 'test';
            data.groupPg = {};
            //data.groupPg.total_num = 2000;
            //data.groupPg.page_size = 10;
            //data.groupPg.current_page = page;

            data._CSSLinks = ['h5/css/line'];
            data._JSLinks  = ['h5/min/line'];
            data.pageTitle = '百科';
            mSelf.render('favorite/pedia.html', data);
        });
    },

    author : function(args){
        if(args){
            var uid = args.split('_')[0];
            var token = args.split('_')[1];
        }
        var php = {
            'favlist' : 'store::/user/lovelist?uid='+uid+'&token='+token
        };
        var mSelf = this;
        this.setSDefault(php);
        this.bridgeMuch(php);
        this.listenOver(function(data){

            data.condition = this.req.__get;
            //console.log(data.condition);

            data.status = 'test';
            data.groupPg = {};
            //data.groupPg.total_num = 2000;
            //data.groupPg.page_size = 10;
            //data.groupPg.current_page = page;

            data._CSSLinks = ['h5/css/line'];
            data._JSLinks  = ['h5/min/line'];
            data.pageTitle = '作者';
            mSelf.render('favorite/author.html', data);
        });
    },

    fav_apis: function(params){
        var php = {
            'favlist' : 'store::/user/lovelist'

        };
        this.ajaxTo(php[params]);
    }
};
exports.__create = controller.__create(favorite , controlFns);
